package com.ansuenjob.model;

/**
 * BstSystemPluralityId entity. @author MyEclipse Persistence Tools
 */

public class BstSystemPluralityId implements java.io.Serializable {

	// Fields

	private Integer mid;
	private String cnName;
	private String enName;
	private Integer orderid;

	// Constructors

	/** default constructor */
	public BstSystemPluralityId() {
	}

	/** minimal constructor */
	public BstSystemPluralityId(Integer mid) {
		this.mid = mid;
	}

	/** full constructor */
	public BstSystemPluralityId(Integer mid, String cnName, String enName,
			Integer orderid) {
		this.mid = mid;
		this.cnName = cnName;
		this.enName = enName;
		this.orderid = orderid;
	}

	// Property accessors

	public Integer getMid() {
		return this.mid;
	}

	public void setMid(Integer mid) {
		this.mid = mid;
	}

	public String getCnName() {
		return this.cnName;
	}

	public void setCnName(String cnName) {
		this.cnName = cnName;
	}

	public String getEnName() {
		return this.enName;
	}

	public void setEnName(String enName) {
		this.enName = enName;
	}

	public Integer getOrderid() {
		return this.orderid;
	}

	public void setOrderid(Integer orderid) {
		this.orderid = orderid;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof BstSystemPluralityId))
			return false;
		BstSystemPluralityId castOther = (BstSystemPluralityId) other;

		return ((this.getMid() == castOther.getMid()) || (this.getMid() != null
				&& castOther.getMid() != null && this.getMid().equals(
				castOther.getMid())))
				&& ((this.getCnName() == castOther.getCnName()) || (this
						.getCnName() != null && castOther.getCnName() != null && this
						.getCnName().equals(castOther.getCnName())))
				&& ((this.getEnName() == castOther.getEnName()) || (this
						.getEnName() != null && castOther.getEnName() != null && this
						.getEnName().equals(castOther.getEnName())))
				&& ((this.getOrderid() == castOther.getOrderid()) || (this
						.getOrderid() != null && castOther.getOrderid() != null && this
						.getOrderid().equals(castOther.getOrderid())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getMid() == null ? 0 : this.getMid().hashCode());
		result = 37 * result
				+ (getCnName() == null ? 0 : this.getCnName().hashCode());
		result = 37 * result
				+ (getEnName() == null ? 0 : this.getEnName().hashCode());
		result = 37 * result
				+ (getOrderid() == null ? 0 : this.getOrderid().hashCode());
		return result;
	}

}